GBML manual / 3D

view3d_draw_thing

Draws thing number n, frame f, standing at (x, y) in the room and lift source pixels above the floor. The way to draw a thing that is not an instance, or one that flies (a bolt).

Game Boy: not available

Game Boy Color: not available

On other consoles this differs: see Side by side and How the consoles differ.

Syntax

view3d_draw_thing(thing, frame, x, y, lift)

Arguments

NameType
thingint
frameint
xreal
yreal
liftreal

Returns

Nothing.

Description

Draws thing number thing, frame frame, standing at (x, y) in the room (room pixels counted from the room's top-left corner) and lift source pixels above the floor. It is the way to draw a thing that is not an instance, or one that flies (a bolt, a bat).

lift is counted in the picture's own pixels, 64 of them being one wall's height, so a lift of 32 floats half a wall up. See view3d_draw_self for what is drawn and what is hidden.

Example

// a bolt flying at half the height of a wall, at room place (120, 80)
view3d_draw_thing(2, 0, 120, 80, 32);

The bolt hangs half a wall above the floor at that place.

On the GBA

lift is counted in the picture’s own pixels, 64 of them being one wall’s height: a thing drawn with lift 32 floats half a wall up. See view3d_draw_self for what is drawn and hidden.

See also: Enemies and items in 3Dview3d_draw_selfview3d_thing